package ar.com.sectorwine.dto;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

public class UsuarioRecuperarDTO {

	private static final String CAMPO_NULO_O_VACIO_MESSAGE = "{constraint.violation.notnull}";
	private static final String CAMPO_ENTRE_8_400_MESSAGE = "{constraint.violation.size.8_400}";
	private static final String EMAIL_NO_VALIDO = "{constraint.violation.email.format}";

	@NotEmpty(message = CAMPO_NULO_O_VACIO_MESSAGE)
	@Size(min = 1, max = 400, message = CAMPO_ENTRE_8_400_MESSAGE)
	@Email(message = EMAIL_NO_VALIDO)
	private String email;

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}
